

#include "loop.h"
#include "timer/timer_channel.h"
#include "timer/timer_task.h"

#include <bits/types/struct_timeval.h>
#include <cstdio>
#include <gtest/gtest.h>
#include <sys/select.h>
#include <unistd.h>

static int timers = 3;


TEST(TimerChannel, Init)
{
    Loop loop;
	TimerTask task(&loop);
	task.ExpireFromNow(10 * 1000, [](){

		printf("timer trigger.\n");
	});
    loop.Run();
}

int main(int argc, char * argv[])
{
    testing::InitGoogleTest(&argc, argv);
    return RUN_ALL_TESTS();
}
